<include file="Common/head" />
<link rel="stylesheet" href="__PUBLIC__/css/weixin/index.css?v=1.0">
<table class="main-box" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
    <thead>
        <tr><th class="head"><img src="__PUBLIC__/img/img-title.png"/></th></tr>
    </thead>
    <tbody id="cate_list">
        <tr class="list-bg list-bg1" data-id="1" controller="Info/index" tpl="index"><td class="text"><img src="__PUBLIC__/img/img-text1.png"/></td></tr>
        <tr class="list-bg list-bg2" data-id="2" controller="Info/index" tpl="index"><td class="text"><img src="__PUBLIC__/img/img-text2.png"/></td></tr>
        <tr class="list-bg list-bg3" data-id="3" controller="Info/index" tpl="index"><td class="text"><img src="__PUBLIC__/img/img-text3.png"/></td></tr>
        <tr class="list-bg list-bg4" data-id="4" controller="Info/index" tpl="index"><td class="text"><img src="__PUBLIC__/img/img-text4.png"/></td></tr>
        <tr class="list-bg list-bg5" data-id="5" controller="Info/index" tpl="index"><td class="text"><img src="__PUBLIC__/img/img-text5.png"/></td></tr>
        <if condition="$isWeiXin">
            <tr class="list-bg list-bg6" controller="Consult/add"><td class="text"><img src="__PUBLIC__/img/img-text6.png"/></td></tr>
            <tr class="list-bg list-bg7" controller="Bespeak/add"><td class="text"><img src="__PUBLIC__/img/img-text7.png"/></td></tr>
        </if>
    </tbody>
    <tfoot>
    <tr><td>&nbsp;</td></tr>
    </tfoot>
</table>

<script type="text/javascript">

    mui("#cate_list").on('tap','tr',function(){
        var id = this.getAttribute("data-id");
        var controller = this.getAttribute("controller");
        var tpl = this.getAttribute("tpl");
        tpl = tpl ? ("/tpl/"+tpl) : "";
        var url = serverName+"/WeiXin/"+controller+tpl;
        url += id ? "/id/"+id : "";
        location.href = url;
    });
</script>
<include file="Common/footer" />